﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter12.Code03.Code01.Snippet04
{
    public class MyGenericClass<T1, T2, T3>
    {
        private T1 interT1Object;

        public MyGenericClass(T1 item)
        {
            interT1Object = item;
        }

        public T1 InterT1Object
        {
            get { return interT1Object; }
        }

        public string GetAllTypesAsString()
        {
            return "T1 = " + typeof(T1).ToString()
               + ", T2 = " + typeof(T2).ToString()
               + ", T3 = " + typeof(T3).ToString();
        }
    }
}
